package xyz.zhouzhaodong.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhouzhaodong.crm.dto.DepartmentDto;
import xyz.zhouzhaodong.crm.entity.Department;
import xyz.zhouzhaodong.crm.util.RestMessage;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-10
 */
public interface IDepartmentService extends IService<Department> {

    /**
     * 新增部门
     * @param departmentDto
     * @return
     */
    RestMessage addDepartment(DepartmentDto departmentDto);

    /**
     * 逻辑删除部门
     * @param id
     * @param staffId
     * @return
     */
    RestMessage deleteDepartment(String id, String staffId);

    /**
     * 修改部门
     * @param departmentDto
     * @return
     */
    RestMessage updateDepartment(DepartmentDto departmentDto);

    /**
     * 按照id查询部门
     * @param id
     * @return
     */
    RestMessage selectOne(String id);

    /**
     * 根据列表查询部门
     * @param departmentDto
     * @return
     */
    RestMessage selectList(DepartmentDto departmentDto);
    
}
